<?=$system_message;?>
<?=form_open('room_section_subject/add_section_to_block/','class="custom"');?>
<fieldset>
<legend class="label">Add Section To Block</legend>
<table class="table table-striped table-hover">
	<thead>
		<tr>
			<td>Block Name:&nbsp;&nbsp;<?=$block_desc->block_name;?></td>
			<td>For Grade Level:&nbsp;&nbsp;<?=$block_desc->level_desc;?></td>
		</tr>
		<tr>
			<td>Option</td>
			<td>Name Of Section</td>
		</tr>
		<tr>
			<td colspan="2" style="text-align:center">Available Sections</td>
		</tr>
	</thead>
	<tbody>
		<?if($sections):?>
			<?foreach($sections as $k => $v):?>
				<tr>
					<td><input type="checkbox" name="section[]" value="<?=$v->id;?>"></td>
					<td><?=$v->section_name;?></td>
				</tr>
			<?endforeach;?>
		<?else:?>
			<tr>
				<td colspan="2">No Sections Found.</td>
			</tr>
		<?endif?>
	</tbody>
</table>
<input type="hidden" name="block_id" value="<?=$block_id;?>">
<input type="hidden" name="level_id" value="<?=$level_id;?>">
<input type="submit" name="add_section_to_block" value="Add Sections to block" class="btn btn-primary">
<a href="<?=site_url('room_section_subject/block_section_settings#block-sections');?>" class="confirm btn btn-default btn-mini" title="leave Block Creator?">Go Back</a>
</fieldset>